<?php
	require_once('configure/parameter.php');
	$links = array();
	$links[]=array("我的预约","user_order.php",$SER_ADD."/user_order","usercentera");//或者这边直接改成根据ip地址获取
	$links[]=array("我的收藏","user_collect.php",$SER_ADD."/user_collect","usercenterb");
	$links[]=array("我发布的车辆","user_publish.php",$SER_ADD."/user_publish","usercenterc");
	$links[]=array("我的购物车","shopping_cart.php",$SER_ADD."/shopping_cart","usercenterd");
	$links[]=array("浏览历史","user_browse.php",$SER_ADD."/user_browse","usercentere");
	$links[]=array("我的账户","user_center.php",$SER_ADD."/user_center","usercenterf");
	
	$self_page = basename($_SERVER['PHP_SELF']);
	foreach($links as $link){
		printf('<a href="%s" class="%s"><li><i class="%s"></i>%s</li></a>',$link[2],$self_page==$link[1]?'usercenter-active':'',$link[3],$link[0]);
			
		}
?>